package com.wyp.design.pattern.behavior.interpreter;

/**
 * 解释器模式
 */
public class Test {
    public static void main(String[] args) {
        String geelyInputStr = "6 100 11 + *";
        ExpressionParser expressionParser = new ExpressionParser();
        int result = expressionParser.parse(geelyInputStr);
        System.out.println("解释器计算结果: " + result);
    }
}
